package com.dragon.mmochat.message;

import com.dragon.mmochat.MmochatConstant;
import com.skymobi.buffer.SkymobiBuffer;
import com.skymobi.message.SkymobiProtocolMessage;

public class Mmochat_13_13S extends SkymobiProtocolMessage {
	String strOrdId;
	String strMerchantId;
	String strMerchantSig;
	int skyId;
	String strRoleName;
	int appId;
	String strAppName;
	int appVer;
	String strproductId;
	String strProductName;
	int exchangeRate;
	int instanceId;
	int businessId;
	String strBusinessName;
	int portalId;
	String strPortalName;
	String reserved1;

	public Mmochat_13_13S() {
		setMsgCode(MmochatConstant.MSGCODE_MMOCHAT_S_13_13);
	}

	@Override
	protected void encodeBody(SkymobiBuffer out) {
		out.putPrefixedString(strOrdId, 2);
		out.putPrefixedString(strMerchantId, 2);
		out.putPrefixedString(strMerchantSig, 2);
		out.putInt(skyId);
		out.putPrefixedString(strRoleName, 2);
		out.putInt(appId);
		out.putPrefixedString(strAppName, 2);
		out.putInt(appVer);
		out.putPrefixedString(strproductId, 2);
		out.putPrefixedString(strProductName, 2);
		out.putInt(exchangeRate);
		out.putUnsignedShort(instanceId);
		out.putInt(businessId);
		out.putPrefixedString(strBusinessName, 2);
		out.putInt(portalId);
		out.putPrefixedString(strPortalName, 2);
		out.putPrefixedString(reserved1, 2);
	}

	public void setStrOrdId(String strOrdId) {
		this.strOrdId = strOrdId;
	}

	public void setStrMerchantId(String strMerchantId) {
		this.strMerchantId = strMerchantId;
	}

	public void setStrMerchantSig(String strMerchantSig) {
		this.strMerchantSig = strMerchantSig;
	}

	public void setSkyId(int skyId) {
		this.skyId = skyId;
	}

	public void setStrRoleName(String strRoleName) {
		this.strRoleName = strRoleName;
	}

	public void setAppId(int appId) {
		this.appId = appId;
	}

	public void setStrAppName(String strAppName) {
		this.strAppName = strAppName;
	}

	public void setAppVer(int appVer) {
		this.appVer = appVer;
	}

	public void setStrproductId(String strproductId) {
		this.strproductId = strproductId;
	}

	public void setStrProductName(String strProductName) {
		this.strProductName = strProductName;
	}

	public void setExchangeRate(int exchangeRate) {
		this.exchangeRate = exchangeRate;
	}

	public void setInstanceId(int instanceId) {
		this.instanceId = instanceId;
	}

	public void setBusinessId(int businessId) {
		this.businessId = businessId;
	}

	public void setStrBusinessName(String strBusinessName) {
		this.strBusinessName = strBusinessName;
	}

	public void setPortalId(int portalId) {
		this.portalId = portalId;
	}

	public void setStrPortalName(String strPortalName) {
		this.strPortalName = strPortalName;
	}

	public void setReserved1(String reserved1) {
		this.reserved1 = reserved1;
	}

}
